SOS_ORDERED_OBJECT

Section: SOS CLASS LIBRARY (3S)
Updated: 13/9/91
Index Return to Main Contents
man2html: unable to open or read file /usr/lib/ms/ms.acc
 

NAME

sos_Ordered_object - predefined class sos_Ordered_object  

SYNOPSIS

#include "<SOS>/include/knl_sos.h"

class sos_Ordered_object
{
public:
   abstract sos_Comp_result compare (sos_Ordered_object);

            sos_Bool        operator <  (sos_Ordered_object);
            sos_Bool        operator <= (sos_Ordered_object);
            sos_Bool        operator >  (sos_Ordered_object);
            sos_Bool        operator >= (sos_Ordered_object);
}
 

DESCRIPTION

The class sos_Ordered_object defines the protocol for a class whose instances are totally ordered. In contrast to the total ordering presented by the compare_ids method of sos_Object, this ordering must be compatible with equal (see below).

compare (o)
yields CMP_LESS, CMP_EQUAL, or CMP_GREATER, iff this object is less than, equal to, or greater than o according to a total ordering.
This ordering must be compatibe with the implementation of equal for this class, i.e. if o1.compare (o2) == x holds, o1*.compare (o2) == x and o1.compare (o2*) == x must also hold for all objects with o1.equal (o1*), respectively o2.equal (o2*).

The remaining operator methods provide a convenient access to the compare method.  

FILES

<SOS>/src/knl/knl.sos
SOS schema file

<SOS>/src/knl/knl_sos.h
complete schema interface

<SOS>/src/knl/knl_use.h
restricted schema interface

<SOS>/src/knl/knl_ext.h
definition of external types (automatically included by knl_use.h)

<SOS>/src/knl/knl.c
sos_Ordered_object implementation

<SOS>/lib/sos.a
SOS library
 

SEE_ALSO

sos_Object(3)  

AUTHOR

Dietmar Theobald


 

Index

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE_ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 00:37:57 GMT, March 30, 2022